import Cookies from 'js-cookie';

export const checkNuwaslogin = (): any => {
    return Cookies.get('satoken') || false;
}

export const jumpNuwa = (url): void => {
    Cookies.remove('satoken', {domain: '.gwmfc.com'})
    window.location.href = window.g.nvwaUri + "/auth?redirect=" + encodeURIComponent( url );
}
